package com.kc.gb.device.plugins.camera.listener.support;

import com.kc.gb.device.common.dto.CameraConfig;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class CameraPublishEvent {
    String station;
    String point;
    String ip;
    int port;
    String message;

    public CameraPublishEvent(CameraConfig cameraConfig,String message) {
        this.station = cameraConfig.getStation();
        this.point = cameraConfig.getPoint();
        this.ip = cameraConfig.getIp();
        this.port = cameraConfig.getPort();
        this.message=message;
    }
}
